extends Control


var data = null

signal delete(data)
signal edit(data)


func set_data(data):
	self.data = data
	
	var item_id = data["itemId"]
	var item_info = DataSource.get_item_by_id(item_id)
	
	$name.text = item_info["name"]
	



# 点击删除
func _on_del_button_up():
	emit_signal("delete", data)

